package org.lgiavedoni.android.franq.event;

import org.lgiavedoni.android.franq.core.place.Place;
import org.lgiavedoni.android.franq.core.place.PlaceManager;

public class CheckOutEvent extends CheckPlaceEvent {

	public CheckOutEvent(Place place) {
		super(place);
	}

	@Override
	public String predictionTimeOff() {
		return "Mmm, whe should not be  \"" + place.getName() + "\" any more";
	}

	@Override
	public String toString() {
		return "CheckOutEvent to \"" + place.getName() + "\"";
	}

	@Override
	public boolean checkOccurrence() {
		return !place.equals(PlaceManager.inst.getCurrentPlace());

	}

	/*
	 * @Override public CalendarEvent toCalendarEvent() { return new
	 * CalendarEventImp("Checkout: " + place.getName(), "Checkout: " +
	 * place.getName(), getCreationDate()); }
	 */

}
